package com.ys.servers.points.service;

import com.ys.servers.common.data.ReturnData;
import com.ys.servers.common.data.UserType;
import com.ys.servers.points.data.UserSignInfo;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;

/**
 * Created by taotao on 2017/5/24.
 */
public interface UserSignInfoService {

    public UserSignInfoService userSign(String userId, UserType userType, Handler<AsyncResult<UserSignInfoData>> resultHandler);

    public UserSignInfoService getUserSignInfo(String userId, UserType userType, Handler<AsyncResult<UserSignInfoData>> resultHandler);

    public class UserSignInfoData{

        private long lastSignInTime;

        private int continuousDay;

        private boolean todaySign;

        public long getLastSignInTime() {
            return lastSignInTime;
        }

        public UserSignInfoData setLastSignInTime(long lastSignInTime) {
            this.lastSignInTime = lastSignInTime;
            return this;
        }

        public int getContinuousDay() {
            return continuousDay;
        }

        public UserSignInfoData setContinuousDay(int continuousDay) {
            this.continuousDay = continuousDay;
            return this;
        }

        public boolean isTodaySign() {
            return todaySign;
        }

        public UserSignInfoData setTodaySign(boolean todaySign) {
            this.todaySign = todaySign;
            return this;
        }
    }
}
